<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="Admin.Admin"%>
<%@ page import="java.sql.*"%>
<%@ page import="java.util.*"%>
<script  language="javascript">
<!-- Begin validation script  
function checkForm(){
	    if(document.form1.AdmID.value==""){
		alert("请输入管理员编号！");
		return false;
		}
	    if(document.form1.AdmKey.value==""){
		alert("请输入管理员密码！");
		return false;
		}
		if(document.form1.AdmTel.value=="")
		{
			alert("输入管理员电话！");
		    return false;
		}
	
	return true;
	}
-->
</script>
<html>
<head>
<title>添加管理员</title>
</head>

<body>
<FORM NAME="form1" METHOD="POST" ACTION="SaveAdmin.jsp" onSubmit="return checkForm()">
 <table width="90%" border="0" cellspacing="1" cellpaddg="0" align="center">
  <tr align=center>
    <td  nowrap align="left" >添加管理员
   	</td>
  </tr>
 </table>	  
  <table  width="90%" border="0" cellspacing="2" cellpadding="0" bgcolor="#FFFBEC" align="center">
    <tr> 
      <td width="20%" align="right">管理员编号：</td>
      <td width="80%" > 
        <input type="text" name="AdmID" size="30">
        * </td>
    </tr>
    <tr> 
      <td width="20%" align="right">管理员密码：</td>
      <td width="80%" > 
        <input type="text" name="AdmKey" size="30">
        * </td>
    </tr>
    <tr> 
      <td width="20%" align="right">真实姓名：</td>
      <td width="80%" > 
        <input type="text" name="AdmTrueName" size="30">
        </td>
    </tr>
    <tr>
      <td width="20%" align="right">出生年月：</td>
      <td width="80%" > 
      <input type="text" name="AdmBirthday" size="30">
       例：1991-01-01</td>
    </tr>
   <tr> 
      <td width="20%" align="right">性别：</td>
        <td width="80%" > 
        <SELECT id=typeId style="WIDTH: 110px" name="AdmSex"> 
         <option   value='1'  >男</option>  
         <option   value=‘0'  >女</option>   
        </SELECT> 
         </td>
    </tr>
    <tr> 
      <td width="20%" align="right" >电话：</td>
      <td width="80%" > 
        <input type="text" name="AdmTel" size="30">
        * </td>
    </tr>
    
    <tr> 
      <td width="20%" align="right">邮箱：</td>
      <td width="80%" > 
        <input type="textarea" name="AdmEmail" size="30">
        </td>
    </tr>
  </table>
<table width="366" border="0" cellspacing="2" cellpadding="0" align="left">
    <tr align="left"> 
      <td colspan="2" height="12" align="right"> 
        <input type="submit" value="提交">
      </td>
      <td colspan="2" height="12" align="center"> 
        <input type="reset" value="重置">
      </td>
    </tr>
  </table>
</FORM>
</body>
</html>
